#include <stdio.h>
#include "esp_log.h"
#include <lvgl.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "./hal/hal.h"
#include "./tasks/task_manager.h"
#include "./tasks/lv_task/lv_task.h"
#include "user_app/lv_port/lv_port.h"
#include "user_app/ui.h"
#include "lv_demos.h"

void app_main(void)
{
    hal_init();
    lv_init();
    lv_port_init();
    task_lvgl_init();
    // task_xxx_init();
    // test
    if(task_lvgl_lock(-1)) {
        ui_init();
        // unlock
        task_lvgl_unlock();
    }
    while (1)
    {
        ESP_LOGI("MAIN", "Running in while loop...");
        vTaskDelay(pdMS_TO_TICKS(1000)); // 每隔1秒输出
    }

}
